hotspot/src/share/vm/prims/jvmtiCodeBlobEvents.cpp
changeset 3686 69c1b5228547
parent 1 489c9b5090e2
child 4894 8a76fd3d098d
equal deleted inserted replaced
3685:e14965d942e3 3686:69c1b5228547
     1 /*
     1 /*
     2  * Copyright 2003-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2  * Copyright 2003-2009 Sun Microsystems, Inc.  All Rights Reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   400     pcds_in_method = (nm->scopes_pcs_end() - nm->scopes_pcs_begin());
   400     pcds_in_method = (nm->scopes_pcs_end() - nm->scopes_pcs_begin());
   401     map = NEW_C_HEAP_ARRAY(jvmtiAddrLocationMap, pcds_in_method);
   401     map = NEW_C_HEAP_ARRAY(jvmtiAddrLocationMap, pcds_in_method);
   402 
   402 
   403     address scopes_data = nm->scopes_data_begin();
   403     address scopes_data = nm->scopes_data_begin();
   404     for( pcd = nm->scopes_pcs_begin(); pcd < nm->scopes_pcs_end(); ++pcd ) {
   404     for( pcd = nm->scopes_pcs_begin(); pcd < nm->scopes_pcs_end(); ++pcd ) {
   405       ScopeDesc sc0(nm, pcd->scope_decode_offset());
   405       ScopeDesc sc0(nm, pcd->scope_decode_offset(), pcd->should_reexecute());
   406       ScopeDesc *sd  = &sc0;
   406       ScopeDesc *sd  = &sc0;
   407       while( !sd->is_top() ) { sd = sd->sender(); }
   407       while( !sd->is_top() ) { sd = sd->sender(); }
   408       int bci = sd->bci();
   408       int bci = sd->bci();
   409       if (bci != InvocationEntryBci) {
   409       if (bci != InvocationEntryBci) {
   410         assert(map_length < pcds_in_method, "checking");
   410         assert(map_length < pcds_in_method, "checking");