Commit e0110920 authored by ishell's avatar ishell Committed by Commit bot

Put more information to the stack when crbug/454297 happens.

Review URL: https://codereview.chromium.org/941693002

Cr-Commit-Position: refs/heads/master@{#26757}
parent 2bf2d4d9
...@@ -2827,10 +2827,14 @@ class PointersUpdatingVisitor : public ObjectVisitor { ...@@ -2827,10 +2827,14 @@ class PointersUpdatingVisitor : public ObjectVisitor {
// TODO(ishell): remove, once crbug/454297 is caught. // TODO(ishell): remove, once crbug/454297 is caught.
void PointersUpdatingVisitor::CheckLayoutDescriptorAndDie(Heap* heap, void PointersUpdatingVisitor::CheckLayoutDescriptorAndDie(Heap* heap,
Object** slot) { Object** slot) {
const int kDataBufferSize = 1280; const int kDataBufferSize = 128;
uintptr_t data[kDataBufferSize] = {0}; uintptr_t data[kDataBufferSize] = {0};
int index = 0; int index = 0;
data[index++] = 0x10aaaaaaaaUL; // begin marker data[index++] = 0x10aaaaaaaaUL; // begin marker
data[index++] = reinterpret_cast<uintptr_t>(slot);
data[index++] = 0x15aaaaaaaaUL;
Address slot_address = reinterpret_cast<Address>(slot); Address slot_address = reinterpret_cast<Address>(slot);
uintptr_t space_owner_id = 0xb001; uintptr_t space_owner_id = 0xb001;
...@@ -2862,7 +2866,7 @@ void PointersUpdatingVisitor::CheckLayoutDescriptorAndDie(Heap* heap, ...@@ -2862,7 +2866,7 @@ void PointersUpdatingVisitor::CheckLayoutDescriptorAndDie(Heap* heap,
Object** map_slot = slot; Object** map_slot = slot;
bool found = false; bool found = false;
const int kMaxDistanceToMap = 64; const int kMaxDistanceToMap = 64;
for (int i = 0; i < kMaxDistanceToMap; i++, map_slot -= kPointerSize) { for (int i = 0; i < kMaxDistanceToMap; i++, map_slot--) {
Address map_address = reinterpret_cast<Address>(*map_slot); Address map_address = reinterpret_cast<Address>(*map_slot);
if (heap->map_space()->ContainsSafe(map_address)) { if (heap->map_space()->ContainsSafe(map_address)) {
found = true; found = true;
...@@ -2871,6 +2875,9 @@ void PointersUpdatingVisitor::CheckLayoutDescriptorAndDie(Heap* heap, ...@@ -2871,6 +2875,9 @@ void PointersUpdatingVisitor::CheckLayoutDescriptorAndDie(Heap* heap,
} }
data[index++] = found; data[index++] = found;
data[index++] = 0x30aaaaaaaaUL; data[index++] = 0x30aaaaaaaaUL;
data[index++] = reinterpret_cast<uintptr_t>(map_slot);
data[index++] = 0x35aaaaaaaaUL;
if (found) { if (found) {
Address obj_address = reinterpret_cast<Address>(map_slot); Address obj_address = reinterpret_cast<Address>(map_slot);
Address end_of_page = Address end_of_page =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment