Style fixes.
This commit is contained in:
@@ -99,10 +99,6 @@ KernelState::~KernelState() {
|
||||
dispatch_thread_->Wait(0, 0, 0, nullptr);
|
||||
}
|
||||
|
||||
if (process_info_block_address_) {
|
||||
memory_->SystemHeapFree(process_info_block_address_);
|
||||
}
|
||||
|
||||
executable_module_.reset();
|
||||
user_modules_.clear();
|
||||
kernel_modules_.clear();
|
||||
@@ -115,6 +111,10 @@ KernelState::~KernelState() {
|
||||
|
||||
delete dispatcher_;
|
||||
|
||||
if (process_info_block_address_) {
|
||||
memory_->SystemHeapFree(process_info_block_address_);
|
||||
}
|
||||
|
||||
assert_true(shared_kernel_state_ == this);
|
||||
shared_kernel_state_ = nullptr;
|
||||
}
|
||||
|
||||
@@ -588,7 +588,7 @@ void XUserModule::Dump() {
|
||||
}
|
||||
}
|
||||
}
|
||||
float total_count = static_cast<float>(import_info_count) * 100.0f;
|
||||
float total_count = static_cast<float>(import_info_count) / 100.0f;
|
||||
printf(" Total: %4llu\n", import_info_count);
|
||||
printf(" Known: %3d%% (%d known, %d unknown)\n",
|
||||
static_cast<int>(known_count / total_count), known_count,
|
||||
|
||||
@@ -208,8 +208,8 @@ template <typename T>
|
||||
class object_ref {
|
||||
public:
|
||||
object_ref() noexcept : value_(nullptr) {}
|
||||
object_ref(nullptr_t) noexcept : value_(nullptr) {
|
||||
} // NOLINT(runtime/explicit)
|
||||
object_ref(nullptr_t) noexcept // NOLINT(runtime/explicit)
|
||||
: value_(nullptr) {}
|
||||
object_ref& operator=(nullptr_t) noexcept {
|
||||
reset();
|
||||
return (*this);
|
||||
|
||||
Reference in New Issue
Block a user