Mercurial > hg > truffle
comparison src/share/vm/services/heapDumper.cpp @ 14518:d8041d695d19
Merged with jdk9/dev/hotspot changeset 3812c088b945
author | twisti |
---|---|
date | Tue, 11 Mar 2014 18:45:59 -0700 |
parents | dcca80b5e7e7 |
children | 4ca6dc0799b6 |
comparison
equal
deleted
inserted
replaced
14141:f97c5ec83832 | 14518:d8041d695d19 |
---|---|
1602 writer()->write_u4(thread_serial_num); | 1602 writer()->write_u4(thread_serial_num); |
1603 writer()->write_u4((u4) (stack_depth + extra_frames)); | 1603 writer()->write_u4((u4) (stack_depth + extra_frames)); |
1604 } | 1604 } |
1605 } | 1605 } |
1606 } | 1606 } |
1607 StackValueCollection *exprs = jvf->expressions(); | |
1608 for(int index = 0; index < exprs->size(); index++) { | |
1609 if (exprs->at(index)->type() == T_OBJECT) { | |
1610 oop o = exprs->obj_at(index)(); | |
1611 if (o != NULL) { | |
1612 writer()->write_u1(HPROF_GC_ROOT_JAVA_FRAME); | |
1613 writer()->write_objectID(o); | |
1614 writer()->write_u4(thread_serial_num); | |
1615 writer()->write_u4((u4) (stack_depth + extra_frames)); | |
1616 } | |
1617 } | |
1618 } | |
1607 } else { | 1619 } else { |
1608 // native frame | 1620 // native frame |
1609 if (stack_depth == 0) { | 1621 if (stack_depth == 0) { |
1610 // JNI locals for the top frame. | 1622 // JNI locals for the top frame. |
1611 java_thread->active_handles()->oops_do(&blk); | 1623 java_thread->active_handles()->oops_do(&blk); |