Draft
Conversation
Remove mallopt and M_MMAP_THRESHOLD related code to support MUSL libc (Alpine Linux). The mallopt API is glibc-specific and causes compilation failures on MUSL-based systems. Changes: - Remove mallopt source files (linux.cc, darwin.cc, mallopt_win.cc) - Remove export_mallopt.cc and export_mallopt.h - Remove initMallopt binding from xprofiler.cc - Remove malloptInited and initMallopt from xprofiler.js - Remove enable_avoid_rss_leak and m_mmap_threshold config options - Remove mallopt.test.js test file This is a low-impact change since: - Only Linux (glibc) had functional implementation - macOS and Windows had empty stub implementations - The feature was for RSS leak prevention optimization only 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
fix: remove mallopt/M_MMAP_THRESHOLD for MUSL libc compatibility
This adds a new CI job that tests compilation and execution on Alpine Linux containers, which use MUSL libc instead of glibc. This ensures the mallopt removal changes work correctly on Alpine-based systems. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Rename package to @youmindinc/xprofiler - Bump version to 3.2.0 for MUSL libc compatibility - Remove binary download config, always build from source - Update repository URLs to YouMindInc fork 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
The binary config is still needed for node-pre-gyp to locate the compiled .node file. Using --build-from-source flag ensures we always compile locally instead of downloading prebuilt binaries. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
__off64_t is glibc-specific and not available in MUSL libc (Alpine Linux). This adds a typedef to define __off64_t as off_t when not using glibc. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.