Skip to content

Commit

Permalink
Fix tes-thread CI OOM killed
Browse files Browse the repository at this point in the history
  • Loading branch information
beef9999 committed Oct 10, 2024
1 parent 06364a7 commit 5bc107d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions thread/test/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ TEST(Semaphore, heavy) {
semaphore sem(0);
const int thread_num = 100000;
for (int i=1; i<=thread_num;i++) {
thread_create11(16 * PAGE_SIZE, semaphore_heavy, sem, i);
thread_create11(4 * PAGE_SIZE, semaphore_heavy, sem, i);
}
LOG_DEBUG("created ` threads", thread_num);
sem.signal(1);
Expand Down Expand Up @@ -1764,11 +1764,12 @@ TEST(future, test2) {
int main(int argc, char** arg)
{
if (!photon::is_using_default_engine()) return 0;
srand(time(nullptr));
::testing::InitGoogleTest(&argc, arg);
gflags::ParseCommandLineFlags(&argc, &arg, true);
default_audit_logger.log_output = log_output_stdout;
photon::vcpu_init();
set_log_output_level(ALOG_DEBUG);
set_log_output_level(ALOG_INFO);

if (FLAGS_vcpus <= 1)
{
Expand Down

0 comments on commit 5bc107d

Please sign in to comment.