Bug 89946 - [patch] PR_GetPhysicalMemorySize not implemented in devel/nspr resulting in poor performance in Firefox
Summary: [patch] PR_GetPhysicalMemorySize not implemented in devel/nspr resulting in p...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-04 21:40 UTC by Juha-Matti Tilli
Modified: 2005-12-04 22:34 UTC (History)
0 users

See Also:


Attachments
file.diff (516 bytes, patch)
2005-12-04 21:40 UTC, Juha-Matti Tilli
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Juha-Matti Tilli 2005-12-04 21:40:02 UTC
The PR_GetPhysicalMemorySize() call is not implemented in the FreeBSD port of
nspr. This causes Firefox to disable memory cache.

How-To-Repeat: 
% cd /usr/ports/devel/nspr; make install
% cat > nspr-test.c
#include "prio.h"
#include "prerror.h"
#include "prprf.h"
#include "prsystem.h"

int main(int argc, char **argv) {
  PRUint64 i = PR_GetPhysicalMemorySize();
  PRFileDesc *out = PR_GetSpecialFD(PR_StandardOutput);
  if(i != 0) {
    PR_fprintf(out, "Physical memory size = %llu\n", i);
  }
  else {
    if(PR_GetError() == PR_NOT_IMPLEMENTED_ERROR)
      PR_fprintf(out, "PR_GetPhysicalMemorySize not implemented\n");
  }
  return 0;
}

% cc -Wall -o nspr-test nspr-test.c `nspr-config --cflags` `nspr-config --libs`
% ./nspr-test
PR_GetPhysicalMemorySize not implemented
Comment 1 Edwin Groothuis freebsd_committer 2005-12-04 21:51:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainer
Comment 2 Joe Marcus Clarke freebsd_committer 2005-12-04 22:34:02 UTC
State Changed
From-To: open->closed

Committed with some minor modifications.  Thanks!