diff src/share/vm/memory/allocation.hpp @ 2015:79d8657be916

6993125: runThese crashes with assert(Thread::current()->on_local_stack((address)this)) Summary: add another ResourceObj debug field to distinguish garbage Reviewed-by: dholmes, coleenp
author kvn
date Fri, 10 Dec 2010 14:14:02 -0800
parents f95d63e2154a
children f7de3327c683
line wrap: on
line diff
--- a/src/share/vm/memory/allocation.hpp	Wed Dec 08 17:50:49 2010 -0800
+++ b/src/share/vm/memory/allocation.hpp	Fri Dec 10 14:14:02 2010 -0800
@@ -337,7 +337,9 @@
   // When this object is allocated on stack the new() operator is not
   // called but garbage on stack may look like a valid allocation_type.
   // Store negated 'this' pointer when new() is called to distinguish cases.
-  uintptr_t _allocation;
+  // Use second array's element for verification value to distinguish garbage.
+  uintptr_t _allocation_t[2];
+  bool is_type_set() const;
  public:
   allocation_type get_allocation_type() const;
   bool allocated_on_stack()    const { return get_allocation_type() == STACK_OR_EMBEDDED; }