Skip to content

Commit

Permalink
[Scheduler] Change threshold for page maps to free
Browse files Browse the repository at this point in the history
  • Loading branch information
LensPlaysGames committed Mar 3, 2024
1 parent d0b34da commit 3bb074d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/src/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ extern "C" void kmain(BootInfo* bInfo) {
// in this loop.
for (;;) {
// Free pages which previously housed page maps (or portions thereof).
if (Scheduler::PageMapsToFree.size() > 1) {
if (Scheduler::PageMapsToFree.size() > 15) {
// TODO: Abstract x86_64
// Disable interrupts; we do this to prevent a timer interrupt causing a
// yield away from this thread, which could invalidate the iterator in the
Expand Down

0 comments on commit 3bb074d

Please sign in to comment.