Displaying 20 results from an estimated 21 matches for "cend".
Did you mean:
ced
2009 Jun 16
1
calling handlers within R_tryEval
...more generally calling handlers.
From my reading of context.c, R_tryEval calls R_ToplevelExec which
creates a context like this:
begincontext(&thiscontext, CTXT_TOPLEVEL, R_NilValue, R_GlobalEnv,
R_BaseEnv, R_NilValue, R_NilValue);
so I guess what I am trying to do is add "cend" and/or "handlerstack" to
this context. Is this possible ? Are there examples of packages doing this ?
Romain
--
Romain Francois
Independent R Consultant
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
2024 Apr 25
1
Big speedup in install.packages() by re-using connections
...Value, R_NilValue));
+ R_PreserveObject(sentinel);
+ UNPROTECT(1);
+ // Avoid leaking the sentinel before setting the finalizer
+ RCNTXT cntxt;
+ begincontext(&cntxt, CTXT_CCODE, R_NilValue, R_BaseEnv, R_BaseEnv,
+ R_NilValue, R_NilValue);
+ cntxt.cend = &rollback_mhnd_sentinel;
+ cntxt.cenddata = sentinel;
+ R_RegisterCFinalizerEx(sentinel, cleanup_mhnd, TRUE);
+ // Succeeded, no need to clean up if endcontext() fails allocation
+ mhnd_sentinel = sentinel;
+ cntxt.cend = NULL;
+ endcontext(&cntxt);
+ }
+...
2010 Aug 25
4
Merging two data set in R,
Dear R Gurus,
I am currently working on the two dataset ( A and B), they both have the
same fields: ID , REGION, OFFICE, CSTART, CEND, NCYCLE, STATUS and
CB.
I want to merge the two data set by ID. The problem I have is that the
in data A, the ID's are unique. However in the data set B, the ID's are
not unique, thus some repeat themselves.
How do I the merge or retrieve the common ones?
Please advise.
Kind Rega...
2011 May 19
3
SEEK_DATA/HOLE on ocfs2 - v2
Two patches follow this message. One fixes the default implementation
of SEEK_HOLE/DATA. This patch applies atop Josef's last posted patch.
The second patch implements the same on ocfs2.
The test tool for the same is available here.
http://oss.oracle.com/~smushran/seek_data/seek_test.c
It is improved since the last post. It runs cleanly on zfs, ocfs2 and ext3
(default behavior). Users
2011 May 19
3
SEEK_DATA/HOLE on ocfs2 - v2
Two patches follow this message. One fixes the default implementation
of SEEK_HOLE/DATA. This patch applies atop Josef's last posted patch.
The second patch implements the same on ocfs2.
The test tool for the same is available here.
http://oss.oracle.com/~smushran/seek_data/seek_test.c
It is improved since the last post. It runs cleanly on zfs, ocfs2 and ext3
(default behavior). Users
2009 Aug 02
1
Non sparse extend init issue
The patch was created against a 1.4 tree. However, it applies cleanly to mainline too.
The patch has been lightly tested. I am running fill_verify_holes on a non sparse volume
currently.
Please review.
Sunil
2006 Nov 17
1
gjournal on 6.x wont build
Hi all,
I was intending on trying out gjournal on a new disk i've added in my
desktop. I had a look to see what the most recent patch provided by
Pawel and found
http://people.freebsd.org/~pjd/patches/gjournal6_20061024.patch
I created the directories as per Pawel's original post
(http://lists.freebsd.org/pipermail/freebsd-fs/2006-June/001962.html)
and the patch succeeded with no failed
2017 Oct 05
1
dealing with a messy dataset
dear Jim,
Yes I fixed the problem. Thanks again all of you for your contribution!
This worked :
start <- c(1, 20, 35, 41, 44, 48, 53, 59, 64, 70, 76, 78, 83, 88,
+ 93, 114, 122, 127)
data1<-read_fwf("lvg_table2.txt",skip=70, fwf_widths(diff(start)))
Well now I know how to deal with fixed-width files :)
Cheers
Jean-Philippe
On 05/10/2017 18:42, jim
2009 Aug 03
1
Non sparse init fix v3
One line fix from Joel's version. Also, some comments removed.
18:58 <sunil> wc->w_first_new_cpos =
18:58 <sunil> - ocfs2_align_bytes_to_clusters(inode->i_sb, i_size_read(inode));
18:58 <sunil> + ocfs2_clusters_for_bytes(inode->i_sb, i_size_read(inode));
2024 Apr 25
1
Big speedup in install.packages() by re-using connections
I'd like to raise this again now that 4.4 is out.
Below is a more complete patch which includes a function to properly
cleanup libcurl when R quits. Implementing this is a little tricky
because libcurl is a separate "module" in R, perhaps there is a better
way, but this works:
view: https://github.com/r-devel/r-svn/pull/166/files
patch:
2024 Sep 02
1
Big speedup in install.packages() by re-using connections
...PreserveObject(sentinel);
> + UNPROTECT(1);
> + // Avoid leaking the sentinel before setting the finalizer
> + RCNTXT cntxt;
> + begincontext(&cntxt, CTXT_CCODE, R_NilValue, R_BaseEnv, R_BaseEnv,
> + R_NilValue, R_NilValue);
> + cntxt.cend = &rollback_mhnd_sentinel;
> + cntxt.cenddata = sentinel;
> + R_RegisterCFinalizerEx(sentinel, cleanup_mhnd, TRUE);
> + // Succeeded, no need to clean up if endcontext() fails allocation
> + mhnd_sentinel = sentinel;
> + cntxt.cend = NULL;
> + end...
2023 Feb 11
1
scan(..., skip=1e11): infinite loop; cannot interrupt
...on->canread)
error(_("cannot read from this connection"));
}
- for (R_xlen_t i = 0; i < nskip; i++) /* MBCS-safe */
- while ((c = scanchar(FALSE, &data)) != '\n' && c != R_EOF);
}
ans = R_NilValue; /* -Wall */
@@ -966,6 +964,10 @@
cntxt.cend = &scan_cleanup;
cntxt.cenddata = &data;
+ if (ii) for (R_xlen_t i = 0, j = 0; i < nskip && c != R_EOF; i++) /* MBCS-safe */
+ while ((c = scanchar(FALSE, &data)) != '\n' && c != R_EOF)
+ if (j++ % 10000 == 9999) R_CheckUserInterrupt();
+
sw...
2009 Mar 03
1
profiler and loops
...args, SEXP callfun)
{
cptr->nextcontext = R_GlobalContext;
cptr->cstacktop = R_PPStackTop;
cptr->evaldepth = R_EvalDepth;
cptr->callflag = flags;
cptr->call = syscall;
cptr->cloenv = env;
cptr->sysparent = sysp;
cptr->conexit = R_NilValue;
cptr->cend = NULL;
cptr->promargs = promargs;
cptr->callfun = callfun;
cptr->vmax = vmaxget();
cptr->intsusp = R_interrupts_suspended;
cptr->handlerstack = R_HandlerStack;
cptr->restartstack = R_RestartStack;
cptr->prstack = R_PendingPromises;
#ifdef BYTECODE
cptr-...
2023 Mar 13
0
scan(..., skip=1e11): infinite loop; cannot interrupt
...ead?from?this?connection"));
>????}
>?-?for?(R_xlen_t?i?=?0;?i?<?nskip;?i++)?/*?MBCS-safe?*/
>?-?????while?((c?=?scanchar(FALSE,?&data))?!=?'\n'?&&?c?!=?R_EOF);
>???????}
>
>???????ans?=?R_NilValue;?/*?-Wall?*/
>?@@?-966,6?+964,10?@@
>???????cntxt.cend?=?&scan_cleanup;
>???????cntxt.cenddata?=?&data;
>
>?+????if?(ii)?for?(R_xlen_t?i?=?0,?j?=?0;?i?<?nskip?&&?c?!=?R_EOF;?i++)?/*?MBCS-safe?*/
>?+?while?((c?=?scanchar(FALSE,?&data))?!=?'\n'?&&?c?!=?R_EOF)
>?+?????if?(j++?%?10000?==?9999)?R_CheckUs...
2023 Feb 11
1
scan(..., skip=1e11): infinite loop; cannot interrupt
Hello, All:
I have a 4.54 GB file that I'm trying to read in chunks using
"scan(..., skip=__)". It works as expected for small values of "skip"
but goes into an infinite loop for "skip=1e11" and similar large values
of skip: I cannot even interrupt it; I must kill R. Below please find
sessionInfo() with a toy example.
My real problem is a large
2009 Jul 13
1
[PATCH 1/1] adds mlogs to aops.c
...es)
static void ocfs2_free_write_ctxt(struct ocfs2_write_ctxt *wc)
{
+ mlog(0, "(0x%p)\n", wc);
+
ocfs2_unlock_and_free_pages(wc->w_pages, wc->w_num_pages);
brelse(wc->w_di_bh);
@@ -978,9 +1050,14 @@ static int ocfs2_alloc_write_ctxt(struct ocfs2_write_ctxt **wcp,
u32 cend;
struct ocfs2_write_ctxt *wc;
+ mlog_entry("(.., 0x%p, %lld, %u, %llu)\n",
+ osb, pos, len, (unsigned long long)di_bh->b_blocknr);
+
wc = kzalloc(sizeof(struct ocfs2_write_ctxt), GFP_NOFS);
- if (!wc)
+ if (!wc) {
+ mlog_exit(-ENOMEM);
return -ENOMEM;
+ }
wc->w_cpo...
2009 Jul 21
1
(no subject)
...es)
static void ocfs2_free_write_ctxt(struct ocfs2_write_ctxt *wc)
{
+ mlog(0, "(0x%p)\n", wc);
+
ocfs2_unlock_and_free_pages(wc->w_pages, wc->w_num_pages);
brelse(wc->w_di_bh);
@@ -978,9 +1056,14 @@ static int ocfs2_alloc_write_ctxt(struct ocfs2_write_ctxt **wcp,
u32 cend;
struct ocfs2_write_ctxt *wc;
+ mlog_entry("(.., 0x%p, %lld, %u, %llu)\n",
+ osb, pos, len, (unsigned long long)di_bh->b_blocknr);
+
wc = kzalloc(sizeof(struct ocfs2_write_ctxt), GFP_NOFS);
- if (!wc)
+ if (!wc) {
+ mlog_exit(-ENOMEM);
return -ENOMEM;
+ }
wc->w_cpo...
2009 Jul 21
1
[PATCH 1/1] ocfs2: adds mlogs to aops.c -V2
...es)
static void ocfs2_free_write_ctxt(struct ocfs2_write_ctxt *wc)
{
+ mlog(0, "(0x%p)\n", wc);
+
ocfs2_unlock_and_free_pages(wc->w_pages, wc->w_num_pages);
brelse(wc->w_di_bh);
@@ -978,9 +1056,14 @@ static int ocfs2_alloc_write_ctxt(struct ocfs2_write_ctxt **wcp,
u32 cend;
struct ocfs2_write_ctxt *wc;
+ mlog_entry("(.., 0x%p, %lld, %u, %llu)\n",
+ osb, pos, len, (unsigned long long)di_bh->b_blocknr);
+
wc = kzalloc(sizeof(struct ocfs2_write_ctxt), GFP_NOFS);
- if (!wc)
+ if (!wc) {
+ mlog_exit(-ENOMEM);
return -ENOMEM;
+ }
wc->w_cpo...
2009 Jan 30
8
[PATCH 0/7] ocfs2: Directory indexing support
The following patches implement indexed directory support in Ocfs2, mostly
according to the design doc I wrote up a while ago:
http://oss.oracle.com/osswiki/OCFS2/DesignDocs/IndexedDirectories
The patches have been rebased on top of 2.6.29-rc2. It should be trivial to
put them into merge_window. Things are what I'd call complete now. I'd like
to get these into the merge_window branch
2006 Feb 24
2
r56 - trunk/debian
...pristine-linux-2.6.12/fs/isofs/compress.c 2005-06-17 21:48:29.000000000 +0200
-+++ linux-2.6.12-xen/fs/isofs/compress.c 2006-02-17 00:45:18.224522813 +0100
++++ linux-2.6.12-xen/fs/isofs/compress.c 2006-02-25 00:12:33.765995151 +0100
@@ -129,8 +129,14 @@ static int zisofs_readpage(struct file *
cend = le32_to_cpu(*(__le32 *)(bh->b_data + (blockendptr & bufmask)));
brelse(bh);
@@ -82032,7 +82035,7 @@
release the pages. If the pages are NULL the decompressed data
diff -Nurp pristine-linux-2.6.12/include/asm-i386/atomic.h linux-2.6.12-xen/include/asm-i386/atomic.h
--- pristine-...