Boxify superslab registry, add bench profile, and document C7 hotpath experiments
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
|
||||
// Tiny Page Box: C5〜C7 用 Tiny-Plus page pool(Superslab/Warm Pool より前段の箱)
|
||||
// tiny_tls_bind_slab() で新しい TLS Slab が bind されたタイミングで
|
||||
// tiny_page_box_on_new_slab() を呼び出し、Page Box 側の page pool を更新する。
|
||||
// tiny_page_box_on_new_slab(class_idx, tls) を呼び出し、Page Box 側の page pool を更新する。
|
||||
#include "box/tiny_page_box.h"
|
||||
|
||||
// Mailbox box
|
||||
@ -369,8 +369,9 @@ static inline void tiny_tls_bind_slab(TinyTLSSlab* tls, SuperSlab* ss, int slab_
|
||||
tls->meta = &ss->slabs[slab_idx];
|
||||
tls->slab_base = tiny_slab_base_for(ss, slab_idx);
|
||||
|
||||
// Tiny Page Box にも新しい slab を通知しておく(C7 など有効クラスのみ)
|
||||
tiny_page_box_on_new_slab(tls);
|
||||
// Tiny Page Box にも新しい slab を通知しておく(有効クラスのみ)
|
||||
int pb_class = tls->meta ? (int)tls->meta->class_idx : -1;
|
||||
tiny_page_box_on_new_slab(pb_class, tls);
|
||||
}
|
||||
|
||||
static inline uint32_t tiny_tls_default_refill(uint32_t cap) {
|
||||
|
||||
Reference in New Issue
Block a user