comparison src/share/vm/prims/jvmtiExport.cpp @ 23614:32b682649973 jdk8u75-b04

8132051: Better byte behavior Reviewed-by: coleenp, roland
author kevinw
date Fri, 15 Jan 2016 22:33:15 +0000
parents 3c8b53552a43
children b5f3a471e646 d109bda16490
comparison
equal deleted inserted replaced
23613:b374548dcb48 23614:32b682649973
1 /* 1 /*
2 * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2003, 2016, 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.
1584 1584
1585 void JvmtiExport::post_raw_field_modification(JavaThread *thread, Method* method, 1585 void JvmtiExport::post_raw_field_modification(JavaThread *thread, Method* method,
1586 address location, KlassHandle field_klass, Handle object, jfieldID field, 1586 address location, KlassHandle field_klass, Handle object, jfieldID field,
1587 char sig_type, jvalue *value) { 1587 char sig_type, jvalue *value) {
1588 1588
1589 if (sig_type == 'I' || sig_type == 'Z' || sig_type == 'C' || sig_type == 'S') { 1589 if (sig_type == 'I' || sig_type == 'Z' || sig_type == 'B' || sig_type == 'C' || sig_type == 'S') {
1590 // 'I' instructions are used for byte, char, short and int. 1590 // 'I' instructions are used for byte, char, short and int.
1591 // determine which it really is, and convert 1591 // determine which it really is, and convert
1592 fieldDescriptor fd; 1592 fieldDescriptor fd;
1593 bool found = JvmtiEnv::get_field_descriptor(field_klass(), field, &fd); 1593 bool found = JvmtiEnv::get_field_descriptor(field_klass(), field, &fd);
1594 // should be found (if not, leave as is) 1594 // should be found (if not, leave as is)