hotspot/src/share/vm/memory/allocation.hpp
changeset 7440 eabaf35910a1
parent 7397 5b173b4ca846
child 8320 544210b4dd48
--- a/hotspot/src/share/vm/memory/allocation.hpp	Wed Dec 08 17:50:49 2010 -0800
+++ b/hotspot/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; }