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

Unified Diff: runtime/bin/process_fuchsia.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/bin/process_android.cc ('k') | runtime/bin/process_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process_fuchsia.cc
diff --git a/runtime/bin/process_fuchsia.cc b/runtime/bin/process_fuchsia.cc
index b2adc710dbf966119464d3ac40bd5912fce46713..77557845e52413b8e67a919b3b6421021b693be4 100644
--- a/runtime/bin/process_fuchsia.cc
+++ b/runtime/bin/process_fuchsia.cc
@@ -80,7 +80,6 @@ class ProcessInfo {
DISALLOW_COPY_AND_ASSIGN(ProcessInfo);
};
-
// Singly-linked list of ProcessInfo objects for all active processes
// started from Dart.
class ProcessInfoList {
@@ -428,12 +427,10 @@ void Process::TerminateExitCodeHandler() {
ExitCodeHandler::Terminate();
}
-
intptr_t Process::CurrentProcessId() {
return static_cast<intptr_t>(getpid());
}
-
int64_t Process::CurrentRSS() {
mx_info_task_stats_t task_stats;
mx_handle_t process = mx_process_self();
@@ -447,14 +444,12 @@ int64_t Process::CurrentRSS() {
return task_stats.mem_private_bytes + task_stats.mem_shared_bytes;
}
-
int64_t Process::MaxRSS() {
// There is currently no way to get the high watermark value on Fuchsia, so
// just return the current RSS value.
return CurrentRSS();
}
-
class IOHandleScope {
public:
explicit IOHandleScope(IOHandle* io_handle) : io_handle_(io_handle) {}
@@ -470,7 +465,6 @@ class IOHandleScope {
DISALLOW_COPY_AND_ASSIGN(IOHandleScope);
};
-
bool Process::Wait(intptr_t pid,
intptr_t in,
intptr_t out,
@@ -613,7 +607,6 @@ bool Process::Wait(intptr_t pid,
return true;
}
-
bool Process::Kill(intptr_t id, int signal) {
LOG_INFO("Sending signal %d to process with id %ld\n", signal, id);
// mx_task_kill is definitely going to kill the process.
@@ -640,7 +633,6 @@ bool Process::Kill(intptr_t id, int signal) {
return true;
}
-
class ProcessStarter {
public:
ProcessStarter(const char* path,
@@ -837,7 +829,6 @@ class ProcessStarter {
DISALLOW_IMPLICIT_CONSTRUCTORS(ProcessStarter);
};
-
int Process::Start(const char* path,
char* arguments[],
intptr_t arguments_length,
« no previous file with comments | « runtime/bin/process_android.cc ('k') | runtime/bin/process_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698