Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
G
GLib
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 937
    • Issues 937
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 59
    • Merge Requests 59
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GNOME
  • GLib
  • Merge Requests
  • !1564

Merged
Opened Jul 05, 2020 by Harald van Dijk@hvdijkContributor

tests: limit number of threads to something reasonable.

  • Overview 7
  • Commits 1
  • Pipelines 2
  • Changes 1

Creating 1000 threads with the default stack size of 8 MiB will fail on architectures with a 32-bit address space. Move up the existing THREADS macro, defined to 100, and use that instead.

Signed-off-by: Harald van Dijk harald@gigawatt.nl

This fixes the following error:

--- command ---
14:29:15 G_TEST_SRCDIR='/h/glib-2.65.0/glib/tests' G_TEST_BUILDDIR='/h/glib-2.65.0-build-x86/glib/tests' MALLOC_CHECK_='2' MALLOC_PERTURB_='118' G_DEBUG='gc-friendly' /h/glib-2.65.0-build-x86/glib/tests/once
--- stdout ---
# random seed: R02S3de116fc029d5cd3e152395688854106
1..5
# Start of once tests
# /once/single-threaded summary: Test g_once() usage from a single thread
ok 1 /once/single-threaded
# /once/multi-threaded summary: Test g_once() usage from multiple threads
Bail out! GLib-FATAL-ERROR: creating thread 'once-multi-threaded': Error creating thread: Resource temporarily unavailable
--- stderr ---

(/h/glib-2.65.0-build-x86/glib/tests/once:219932): GLib-ERROR **: 14:29:15.372: creating thread 'once-multi-threaded': Error creating thread: Resource temporarily unavailable
-------
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: GNOME/glib!1564
Source branch: tests-limit-threads

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.