comparison src/share/vm/ci/ciReplay.cpp @ 7623:203f64878aab

7102489: RFE: cleanup jlong typedef on __APPLE__and _LLP64 systems. Summary: Define jlong as long on all LP64 platforms and add JLONG_FORMAT macro. Reviewed-by: dholmes, coleenp, mikael, kvn
author hseigel
date Thu, 17 Jan 2013 10:25:16 -0500
parents 90273fc0a981
children 8391fdd36e1f
comparison
equal deleted inserted replaced
7620:e94ed1591b42 7623:203f64878aab
1 /* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. 1 /* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3 * 3 *
4 * This code is free software; you can redistribute it and/or modify it 4 * This code is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 2 only, as 5 * under the terms of the GNU General Public License version 2 only, as
6 * published by the Free Software Foundation. 6 * published by the Free Software Foundation.
643 } else if (strcmp(field_signature, "Z") == 0) { 643 } else if (strcmp(field_signature, "Z") == 0) {
644 int value = atol(string_value); 644 int value = atol(string_value);
645 java_mirror->bool_field_put(fd.offset(), value); 645 java_mirror->bool_field_put(fd.offset(), value);
646 } else if (strcmp(field_signature, "J") == 0) { 646 } else if (strcmp(field_signature, "J") == 0) {
647 jlong value; 647 jlong value;
648 if (sscanf(string_value, INT64_FORMAT, &value) != 1) { 648 if (sscanf(string_value, JLONG_FORMAT, &value) != 1) {
649 fprintf(stderr, "Error parsing long: %s\n", string_value); 649 fprintf(stderr, "Error parsing long: %s\n", string_value);
650 return; 650 return;
651 } 651 }
652 java_mirror->long_field_put(fd.offset(), value); 652 java_mirror->long_field_put(fd.offset(), value);
653 } else if (strcmp(field_signature, "F") == 0) { 653 } else if (strcmp(field_signature, "F") == 0) {