Fix cctest/JumpTablePatchingStress

after ccefc2e273.

Bug: v8:13023
Change-Id: I5830296fa03e75e503cea116e90ff27327b0b642
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3790960
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Auto-Submit: Jakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82021}
This commit is contained in:
Jakob Kummerow 2022-07-28 11:33:12 +02:00 committed by V8 LUCI CQ
parent 46887d2bb0
commit 0430b5b809

View File

@ -254,7 +254,6 @@ TEST(JumpTablePatchingStress) {
std::bitset<kAvailableBufferSlots> used_thunk_slots;
buffer->MakeWritableAndExecutable();
RwxMemoryWriteScopeForTesting rwx_write_scope;
// Iterate through jump-table slots to hammer at different alignments within
// the jump-table, thereby increasing stress for variable-length ISAs.
@ -265,6 +264,7 @@ TEST(JumpTablePatchingStress) {
std::vector<std::unique_ptr<TestingAssemblerBuffer>> thunk_buffers;
std::vector<Address> patcher_thunks;
{
RwxMemoryWriteScopeForTesting rwx_write_scope;
// Patch the jump table slot to jump to itself. This will later be patched
// by the patchers.
Address slot_addr =