File tree 1 file changed +2
-5
lines changed
vendor/misttech/zircon/kernel/lib/starnix/kernel/fs/mistos
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ class ScratchAllocator {
65
65
return *this ;
66
66
}
67
67
68
- explicit Holder (size_t size) {
68
+ Holder (size_t size) {
69
69
fbl::RefPtr<VmObjectPaged> vmo;
70
70
uint64_t aligned_size;
71
71
zx_status_t status = VmObject::RoundSize (size, &aligned_size);
@@ -95,18 +95,16 @@ class ScratchAllocator {
95
95
mapping_ = ktl::move (map_result->mapping );
96
96
}
97
97
98
- // zbitl::View::CopyStorageItem calls this get the scratch memory.
98
+ // zbitl::View::CopyStorageItem calls this to get the scratch memory.
99
99
void * get () const { return reinterpret_cast <void *>(mapping_->base_locking ()); }
100
100
101
101
~Holder () {
102
102
if (mapping_) {
103
103
mapping_->Destroy ();
104
- // pinned_memory_'s destructor will un-pin the pages just unmapped.
105
104
}
106
105
}
107
106
108
107
private:
109
- // zx::unowned_vmar vmar_;
110
108
PinnedVmObject pinned_vmo_;
111
109
fbl::RefPtr<VmMapping> mapping_;
112
110
};
@@ -126,7 +124,6 @@ class ScratchAllocator {
126
124
vprintf (fmt, args);
127
125
va_end (args);
128
126
});
129
- // zx_process_exit(-1);
130
127
ZX_PANIC (" " );
131
128
}
132
129
You can’t perform that action at this time.
0 commit comments