comparison src/share/vm/runtime/sharedRuntime.cpp @ 360:5d254928c888

Merge
author ysr
date Wed, 27 Aug 2008 11:20:46 -0700
parents 1ee8caae33af
children dc16daa0329d
comparison
equal deleted inserted replaced
341:d60e4e6d7f72 360:5d254928c888
108 } 108 }
109 tty->print_cr ("Total IC misses: %7d", tot_misses); 109 tty->print_cr ("Total IC misses: %7d", tot_misses);
110 } 110 }
111 } 111 }
112 #endif // PRODUCT 112 #endif // PRODUCT
113
114 #ifndef SERIALGC
115
116 // G1 write-barrier pre: executed before a pointer store.
117 JRT_LEAF(void, SharedRuntime::g1_wb_pre(oopDesc* orig, JavaThread *thread))
118 if (orig == NULL) {
119 assert(false, "should be optimized out");
120 return;
121 }
122 // store the original value that was in the field reference
123 thread->satb_mark_queue().enqueue(orig);
124 JRT_END
125
126 // G1 write-barrier post: executed after a pointer store.
127 JRT_LEAF(void, SharedRuntime::g1_wb_post(void* card_addr, JavaThread* thread))
128 thread->dirty_card_queue().enqueue(card_addr);
129 JRT_END
130
131 #endif // !SERIALGC
113 132
114 133
115 JRT_LEAF(jlong, SharedRuntime::lmul(jlong y, jlong x)) 134 JRT_LEAF(jlong, SharedRuntime::lmul(jlong y, jlong x))
116 return x * y; 135 return x * y;
117 JRT_END 136 JRT_END