summaryrefslogtreecommitdiff
path: root/mozglue
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-10-15 18:01:51 +0000
committerMoonchild <moonchild@palemoon.org>2022-04-01 15:26:49 +0200
commitc14bb310ce237c375a5cf4a89e7689ddfbf016c5 (patch)
tree0551fe2ac349660e93fcd19547a30e2b10b1e0f2 /mozglue
parentccee5c781bb622d3edd3ac3067bae12af41587f8 (diff)
downloaduxp-c14bb310ce237c375a5cf4a89e7689ddfbf016c5.tar.gz
Issue #1053 - Clean up docs and some code comments.
Polish only, no code changes.
Diffstat (limited to 'mozglue')
-rw-r--r--mozglue/build/arm.cpp8
-rw-r--r--mozglue/misc/StackWalk.cpp7
2 files changed, 5 insertions, 10 deletions
diff --git a/mozglue/build/arm.cpp b/mozglue/build/arm.cpp
index e11985e4d7..a2f40246df 100644
--- a/mozglue/build/arm.cpp
+++ b/mozglue/build/arm.cpp
@@ -32,11 +32,9 @@ get_arm_cpu_flags(void)
FILE *fin;
bool armv6_processor = false;
flags = 0;
- /*Reading /proc/self/auxv would be easier, but that doesn't work reliably on
- Android. This also means that detection will fail in Scratchbox, which is
- desirable, as NEON does not work in the qemu shipped with the Maemo 5 SDK.
- I don't know if /proc/self/auxv would do any better in that case, anyway,
- or if it would return random flags from the host CPU.*/
+ /*Reading /proc/self/auxv would be easier, but that doesn't work reliably in
+ qemu and potentially other virtual environments.
+ It might also return random flags from the host CPU in that case.*/
fin = fopen ("/proc/cpuinfo","r");
if (fin != nullptr)
{
diff --git a/mozglue/misc/StackWalk.cpp b/mozglue/misc/StackWalk.cpp
index 8b50ddc347..0fa2250aec 100644
--- a/mozglue/misc/StackWalk.cpp
+++ b/mozglue/misc/StackWalk.cpp
@@ -831,7 +831,7 @@ unwind_callback(struct _Unwind_Context* context, void* closure)
info->isCriticalAbort = true;
// We just want to stop the walk, so any error code will do. Using
// _URC_NORMAL_STOP would probably be the most accurate, but it is not
- // defined on Android for ARM.
+ // defined on all OSes for ARM.
return _URC_FOREIGN_EXCEPTION_CAUGHT;
}
if (--info->skip < 0) {
@@ -864,10 +864,7 @@ MozStackWalk(MozWalkStackCallback aCallback, uint32_t aSkipFrames,
(void)_Unwind_Backtrace(unwind_callback, &info);
// We ignore the return value from _Unwind_Backtrace and instead determine
- // the outcome from |info|. There are two main reasons for this:
- // - On ARM/Android bionic's _Unwind_Backtrace usually (always?) returns
- // _URC_FAILURE. See
- // https://bugzilla.mozilla.org/show_bug.cgi?id=717853#c110.
+ // the outcome from |info|. The main reason for this:
// - If aMaxFrames != 0, we want to stop early, and the only way to do that
// is to make unwind_callback return something other than _URC_NO_REASON,
// which causes _Unwind_Backtrace to return a non-success code.