hotspot/src/share/vm/opto/graphKit.cpp
changeset 29083 5e7bce2712ac
parent 28934 903e319e521a
parent 29081 c61eb4914428
child 29089 c3404869ce6e
equal deleted inserted replaced
28958:8d8f9907083d 29083:5e7bce2712ac
     1 /*
     1 /*
     2  * Copyright (c) 2001, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 2015, Oracle and/or its affiliates. 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.
  3752 void GraphKit::final_sync(IdealKit& ideal) {
  3752 void GraphKit::final_sync(IdealKit& ideal) {
  3753   // Final sync IdealKit and graphKit.
  3753   // Final sync IdealKit and graphKit.
  3754   sync_kit(ideal);
  3754   sync_kit(ideal);
  3755 }
  3755 }
  3756 
  3756 
       
  3757 Node* GraphKit::byte_map_base_node() {
       
  3758   // Get base of card map
       
  3759   CardTableModRefBS* ct = (CardTableModRefBS*)(Universe::heap()->barrier_set());
       
  3760   assert(sizeof(*ct->byte_map_base) == sizeof(jbyte), "adjust users of this code");
       
  3761   if (ct->byte_map_base != NULL) {
       
  3762     return makecon(TypeRawPtr::make((address)ct->byte_map_base));
       
  3763   } else {
       
  3764     return null();
       
  3765   }
       
  3766 }
       
  3767 
  3757 // vanilla/CMS post barrier
  3768 // vanilla/CMS post barrier
  3758 // Insert a write-barrier store.  This is to let generational GC work; we have
  3769 // Insert a write-barrier store.  This is to let generational GC work; we have
  3759 // to flag all oop-stores before the next GC point.
  3770 // to flag all oop-stores before the next GC point.
  3760 void GraphKit::write_barrier_post(Node* oop_store,
  3771 void GraphKit::write_barrier_post(Node* oop_store,
  3761                                   Node* obj,
  3772                                   Node* obj,