Mercurial > hg > truffle
comparison src/share/vm/compiler/oopMap.cpp @ 6204:90d5a592ea8f
Merge
author | coleenp |
---|---|
date | Thu, 12 Jul 2012 14:26:25 -0400 |
parents | d2a62e0f25eb |
children | 957c266d8bc5 b9a9ed0f8eeb |
comparison
equal
deleted
inserted
replaced
6196:3759236eea14 | 6204:90d5a592ea8f |
---|---|
597 | 597 |
598 //------------------------------DerivedPointerTable--------------------------- | 598 //------------------------------DerivedPointerTable--------------------------- |
599 | 599 |
600 #ifdef COMPILER2 | 600 #ifdef COMPILER2 |
601 | 601 |
602 class DerivedPointerEntry : public CHeapObj { | 602 class DerivedPointerEntry : public CHeapObj<mtCompiler> { |
603 private: | 603 private: |
604 oop* _location; // Location of derived pointer (also pointing to the base) | 604 oop* _location; // Location of derived pointer (also pointing to the base) |
605 intptr_t _offset; // Offset from base pointer | 605 intptr_t _offset; // Offset from base pointer |
606 public: | 606 public: |
607 DerivedPointerEntry(oop* location, intptr_t offset) { _location = location; _offset = offset; } | 607 DerivedPointerEntry(oop* location, intptr_t offset) { _location = location; _offset = offset; } |
619 // empty. If not, then we have probably forgotton to call | 619 // empty. If not, then we have probably forgotton to call |
620 // update_pointers after last GC/Scavenge. | 620 // update_pointers after last GC/Scavenge. |
621 assert (!_active, "should not be active"); | 621 assert (!_active, "should not be active"); |
622 assert(_list == NULL || _list->length() == 0, "table not empty"); | 622 assert(_list == NULL || _list->length() == 0, "table not empty"); |
623 if (_list == NULL) { | 623 if (_list == NULL) { |
624 _list = new (ResourceObj::C_HEAP) GrowableArray<DerivedPointerEntry*>(10, true); // Allocated on C heap | 624 _list = new (ResourceObj::C_HEAP, mtCompiler) GrowableArray<DerivedPointerEntry*>(10, true); // Allocated on C heap |
625 } | 625 } |
626 _active = true; | 626 _active = true; |
627 } | 627 } |
628 | 628 |
629 | 629 |