Title: [212262] trunk/Source/_javascript_Core
- Revision
- 212262
- Author
- [email protected]
- Date
- 2017-02-13 17:08:54 -0800 (Mon, 13 Feb 2017)
Log Message
asyncDisassembly crashes on iOS
https://bugs.webkit.org/show_bug.cgi?id=168259
Reviewed by Filip Pizlo.
Eliminated the dumping of the disassembly for the JIT write thunk.
Not only does it fix the crash, but given the nature of the JIT
write thunk, we probably don't want to disassemble it anyway.
* jit/ExecutableAllocatorFixedVMPool.cpp:
(JSC::FixedVMPoolExecutableAllocator::jitWriteThunkGenerator):
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (212261 => 212262)
--- trunk/Source/_javascript_Core/ChangeLog 2017-02-14 01:07:03 UTC (rev 212261)
+++ trunk/Source/_javascript_Core/ChangeLog 2017-02-14 01:08:54 UTC (rev 212262)
@@ -1,3 +1,17 @@
+2017-02-13 Michael Saboff <[email protected]>
+
+ asyncDisassembly crashes on iOS
+ https://bugs.webkit.org/show_bug.cgi?id=168259
+
+ Reviewed by Filip Pizlo.
+
+ Eliminated the dumping of the disassembly for the JIT write thunk.
+ Not only does it fix the crash, but given the nature of the JIT
+ write thunk, we probably don't want to disassemble it anyway.
+
+ * jit/ExecutableAllocatorFixedVMPool.cpp:
+ (JSC::FixedVMPoolExecutableAllocator::jitWriteThunkGenerator):
+
2017-02-12 Ryosuke Niwa <[email protected]>
C loop build fix attempt after r212207.
Modified: trunk/Source/_javascript_Core/jit/ExecutableAllocatorFixedVMPool.cpp (212261 => 212262)
--- trunk/Source/_javascript_Core/jit/ExecutableAllocatorFixedVMPool.cpp 2017-02-14 01:07:03 UTC (rev 212261)
+++ trunk/Source/_javascript_Core/jit/ExecutableAllocatorFixedVMPool.cpp 2017-02-14 01:08:54 UTC (rev 212262)
@@ -269,7 +269,12 @@
jit.ret();
LinkBuffer linkBuffer(jit, stubBase, stubSize);
- return FINALIZE_CODE(linkBuffer, ("Bulletproof JIT write thunk"));
+ // We don't use FINALIZE_CODE() for two reasons.
+ // The first is that we don't want the writeable address, as disassembled instructions,
+ // to appear in the console or anywhere in memory, via the PrintStream buffer.
+ // The second is we can't guarantee that the code is readable when using the
+ // asyncDisassembly option as our caller will set our pages execute only.
+ return linkBuffer.finalizeCodeWithoutDisassembly();
}
#else // CPU(ARM64) && USE(EXECUTE_ONLY_JIT_WRITE_FUNCTION)
static void genericWriteToJITRegion(off_t offset, const void* data, size_t dataSize)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes