commit | b12be8c68853b1347fdeaaf72ec3ca2e0d72c54d | [log] [tgz] |
---|---|---|
author | Mathieu Chartier <mathieuc@google.com> | Thu Dec 01 14:54:38 2016 -0800 |
committer | Mathieu Chartier <mathieuc@google.com> | Thu Dec 01 15:14:40 2016 -0800 |
tree | 7dde8313671fbea35e7e7d17a715c3b0f2d3a7e3 | |
parent | 5eb1e1e7341f4e7febf77c04f8649a9566b31c03 [diff] [blame] |
Fix PACKED for jvalue Make it only as packed as alignof(mirror::Object*). Bug: 31532493 Test: mm test-art-host Change-Id: I242c549bcc9203d3173f204264b0dc2f2f8e3441
diff --git a/runtime/jvalue.h b/runtime/jvalue.h index 52a0f23..398bfbc 100644 --- a/runtime/jvalue.h +++ b/runtime/jvalue.h
@@ -29,7 +29,7 @@ class Object; } // namespace mirror -union PACKED(4) JValue { +union PACKED(alignof(mirror::Object*)) JValue { // We default initialize JValue instances to all-zeros. JValue() : j(0) {}