391 return size;
392 }
393
394 /////////////////////////////////////////////////////////////////////////////
395 // helper functions for fatal error handler
396
397 void os::print_context(outputStream* st, void* context) {
398 ShouldNotCallThis();
399 }
400
401 void os::print_register_info(outputStream *st, void *context) {
402 ShouldNotCallThis();
403 }
404
405 /////////////////////////////////////////////////////////////////////////////
406 // Stubs for things that would be in linux_zero.s if it existed.
407 // You probably want to disassemble these monkeys to check they're ok.
408
409 extern "C" {
410 int SpinPause() {
411 }
412
413
414 void _Copy_conjoint_jshorts_atomic(jshort* from, jshort* to, size_t count) {
415 if (from > to) {
416 jshort *end = from + count;
417 while (from < end)
418 *(to++) = *(from++);
419 }
420 else if (from < to) {
421 jshort *end = from;
422 from += count - 1;
423 to += count - 1;
424 while (from >= end)
425 *(to--) = *(from--);
426 }
427 }
428 void _Copy_conjoint_jints_atomic(jint* from, jint* to, size_t count) {
429 if (from > to) {
430 jint *end = from + count;
|
391 return size;
392 }
393
394 /////////////////////////////////////////////////////////////////////////////
395 // helper functions for fatal error handler
396
397 void os::print_context(outputStream* st, void* context) {
398 ShouldNotCallThis();
399 }
400
401 void os::print_register_info(outputStream *st, void *context) {
402 ShouldNotCallThis();
403 }
404
405 /////////////////////////////////////////////////////////////////////////////
406 // Stubs for things that would be in linux_zero.s if it existed.
407 // You probably want to disassemble these monkeys to check they're ok.
408
409 extern "C" {
410 int SpinPause() {
411 return 0; // Shouldn't matter.
412 }
413
414
415 void _Copy_conjoint_jshorts_atomic(jshort* from, jshort* to, size_t count) {
416 if (from > to) {
417 jshort *end = from + count;
418 while (from < end)
419 *(to++) = *(from++);
420 }
421 else if (from < to) {
422 jshort *end = from;
423 from += count - 1;
424 to += count - 1;
425 while (from >= end)
426 *(to--) = *(from--);
427 }
428 }
429 void _Copy_conjoint_jints_atomic(jint* from, jint* to, size_t count) {
430 if (from > to) {
431 jint *end = from + count;
|