diff options
author | Paul Duffin <paulduffin@google.com> | 2018-06-07 18:07:20 +0100 |
---|---|---|
committer | Paul Duffin <paulduffin@google.com> | 2018-06-07 20:53:12 +0100 |
commit | 87703bae2ab11df83305f9a28c3431d32b697cad (patch) | |
tree | 042eb832cc6d87afc2f4d68fcb871a65d646d224 /include/ScopedJavaUnicodeString.h | |
parent | 31d23f721b63977469f93c8a8af5e7881861cbeb (diff) |
Throwable: Revert unneeded changes from upstream 8u121-b13
Removes volatile from the backtrace field. It is not needed because the
backtrace field is only ever accessed from a synchronized block and it
is not accessed from native code.
Adds an assert in printEnclosedStackTrace() to check that the current
thread is synchronized on the PrintStream/PrintWriter to which the stack
trace is printed. The assert should always succeed as the only code
paths to the check synchronize correctly.
Bug: 35910877
Test: make checkbuild and run CtsLibcoreTestCases
Change-Id: Id0d49661f00c2886db732c85fce8088f2355db1b
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions