Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Unified Diff: runtime/vm/safepoint.cc

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/safepoint.h ('k') | runtime/vm/scanner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/safepoint.cc
diff --git a/runtime/vm/safepoint.cc b/runtime/vm/safepoint.cc
index a554a9a8f33aed68ddf3e742d5ffa23e58768dce..7dabc5a738f7df5d0f0435b2b71be9c75603f1f9 100644
--- a/runtime/vm/safepoint.cc
+++ b/runtime/vm/safepoint.cc
@@ -23,7 +23,6 @@ SafepointOperationScope::SafepointOperationScope(Thread* T) : StackResource(T) {
handler->SafepointThreads(T);
}
-
SafepointOperationScope::~SafepointOperationScope() {
Thread* T = thread();
ASSERT(T != NULL);
@@ -36,7 +35,6 @@ SafepointOperationScope::~SafepointOperationScope() {
handler->ResumeThreads(T);
}
-
SafepointHandler::SafepointHandler(Isolate* isolate)
: isolate_(isolate),
safepoint_lock_(new Monitor()),
@@ -44,7 +42,6 @@ SafepointHandler::SafepointHandler(Isolate* isolate)
safepoint_operation_count_(0),
owner_(NULL) {}
-
SafepointHandler::~SafepointHandler() {
ASSERT(owner_ == NULL);
ASSERT(safepoint_operation_count_ == 0);
@@ -53,7 +50,6 @@ SafepointHandler::~SafepointHandler() {
isolate_ = NULL;
}
-
void SafepointHandler::SafepointThreads(Thread* T) {
{
// First grab the threads list lock for this isolate
@@ -120,7 +116,6 @@ void SafepointHandler::SafepointThreads(Thread* T) {
}
}
-
void SafepointHandler::ResumeThreads(Thread* T) {
// First resume all the threads which are blocked for the safepoint
// operation.
@@ -153,7 +148,6 @@ void SafepointHandler::ResumeThreads(Thread* T) {
sl.NotifyAll();
}
-
void SafepointHandler::EnterSafepointUsingLock(Thread* T) {
MonitorLocker tl(T->thread_lock());
T->SetAtSafepoint(true);
@@ -165,7 +159,6 @@ void SafepointHandler::EnterSafepointUsingLock(Thread* T) {
}
}
-
void SafepointHandler::ExitSafepointUsingLock(Thread* T) {
MonitorLocker tl(T->thread_lock());
ASSERT(T->IsAtSafepoint());
@@ -177,7 +170,6 @@ void SafepointHandler::ExitSafepointUsingLock(Thread* T) {
T->SetAtSafepoint(false);
}
-
void SafepointHandler::BlockForSafepoint(Thread* T) {
MonitorLocker tl(T->thread_lock());
if (T->IsSafepointRequested()) {
« no previous file with comments | « runtime/vm/safepoint.h ('k') | runtime/vm/scanner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698