summaryrefslogtreecommitdiffstats
path: root/runtime/base/logging.h
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2014-11-11 16:10:33 -0800
committerIan Rogers <irogers@google.com>2014-11-11 16:10:33 -0800
commitf4d4da18aa1914d10264082bd0433f59bff45453 (patch)
tree16edc1787c285135a0012cfc8737a8b89987f24b /runtime/base/logging.h
parent4c9c251c2a32cd8d1be21bc47a9188358cb9f17f (diff)
downloadart-f4d4da18aa1914d10264082bd0433f59bff45453.zip
art-f4d4da18aa1914d10264082bd0433f59bff45453.tar.gz
art-f4d4da18aa1914d10264082bd0433f59bff45453.tar.bz2
Allow JNI AttachCurrentThread to fail if not enough stack.
Add unit tests and move JavaVM JNI tests into there own set of gtests. Bug: 18330119 Change-Id: I0e93dff783b1f5d787b3084d24122883e14951a1
Diffstat (limited to 'runtime/base/logging.h')
-rw-r--r--runtime/base/logging.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/base/logging.h b/runtime/base/logging.h
index baa83e3..ae83e33 100644
--- a/runtime/base/logging.h
+++ b/runtime/base/logging.h
@@ -244,6 +244,10 @@ class LogMessage {
// The routine that performs the actual logging.
static void LogLine(const char* file, unsigned int line, LogSeverity severity, const char* msg);
+ // A variant of the above for use with little stack.
+ static void LogLineLowStack(const char* file, unsigned int line, LogSeverity severity,
+ const char* msg);
+
private:
const std::unique_ptr<LogMessageData> data_;