History

Altered API getting the allocation from a vm_alloc_t. Added preliminary internal file descriptor type. Test groups now print out their name.

arr committed 10 years ago

Commit 5a417ba1 parent 9881f459 files · +230 −104Browse files

Showing the changes to src/include (1 of 9 files). Show all

Unified · Split

src/include/runtime.h+7−1
@@ -134,7 +134,13 @@ namespace disvm · 133 unmodified lines
134 pointer_t gc_reserved;134 pointer_t gc_reserved;
135 135
136 public:136 public:
137 pointer_t allocation() const;137 pointer_t get_allocation() const;
138
139 template <typename T>
140 T *get_allocation() const
141 {
142 return reinterpret_cast<T *>(get_allocation());
143 }
138 144
139 private:145 private:
140 std::atomic<std::size_t> _ref_count;146 std::atomic<std::size_t> _ref_count;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t